import request from '@/utils/request'
export default {
    add(data) {
        return request({
            url: '/zyh-fishing-master/webRole/add',
            method: 'post',
            data
        })
    },
    edit(data) {
        return request({
            url: '/zyh-fishing-master/webRole/edit',
            method: 'post',
            data
        })
    },
    delById(id) {
        return request({
            url: `/zyh-fishing-master/webRole/delById?id=${id}`,
            method: 'get',
        })
    }, 
    delListById(idList) {
        return request({
            url: `/zyh-fishing-master/webRole/delListById?idList=${idList}`,
            method: 'get'
        })
    },
    queryByCondition(data) {
        return request({
            url: '/zyh-fishing-master/webRole/queryByCondition',
            method: 'post',
            data
        })
    },
    queryPageByCondition(data) {
        return request({
            url: '/zyh-fishing-master/webRole/queryPageByCondition',
            method: 'post',
            data
        })
    }
}
